package ubo.master1.jeupoker.gui;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.Icon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;
import javax.swing.border.EmptyBorder;

/**
 * Fenetre du controleur ( Tournant )
 */
public class ControleurIcon extends JPanel {

    private Icon CARD_BACK_ICONT;
    /** La bordur. */
    private static final Border BORDER = new EmptyBorder(10, 10, 10, 10);
    private JLabel card1Label;

    public ControleurIcon(String pathJoueurIcon) {
        setBorder(BORDER);

        CARD_BACK_ICONT = AcceeCarts.getIcon("/images/" + pathJoueurIcon);
        this.setOpaque(false);
        setLayout(new GridBagLayout());
        GridBagConstraints gc = new GridBagConstraints();
        card1Label = new JLabel(CARD_BACK_ICONT);

        gc.gridx = 0;
        gc.gridy = 0;
        gc.gridwidth = 1;
        gc.gridheight = 1;
        gc.weightx = 1.0;
        gc.weighty = 1.0;

        gc.anchor = GridBagConstraints.CENTER;
        gc.fill = GridBagConstraints.NONE;
        add(card1Label, gc);

    }

    public ControleurIcon() {
    }

    
}
